# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pcapfix
pkgver=1.1.7
pkgrel=1
groups=('blackarch' 'blackarch-networking' 'blackarch-misc')
pkgdesc='Tries to repair your broken pcap and pcapng files.'
arch=('x86_64' 'aarch64')
url='http://f00l.de/pcapfix/'
license=('GPL3')
source=("http://f00l.de/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('d8d1106349116303f35254f680916f1ea26b163f9afceb5d237eed89880810d4b7b40ebca9de58ec95af2336dd78f4e11af1a08b89f6765055843a9791c156bd')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README INSTALL Changelog
}

